<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
   	<c:forEach begin="0" items="${requestScope.initlist}" var="initlist">
   		${initlist.name }   	
   	</c:forEach>
   	 <a href="javaScript:history.back()">后退</a> 
			当前页数:[${requestScope.nowPage}/${requestScope.maxPage}]
			<c:choose>
			<c:when test="${requestScope.nowPage==1 && requestScope.appraise_allListMaxPage!=1}">
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=1&op=0"">首 页</a>
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=${requestScope.nowPage+1}">下一页</a>
			</c:when>
			<c:when test="${requestScope.nowPage==requestScope.maxPage && requestScope.maxPage!=1}">
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=${requestScope.nowPage-1}">上一页</a>
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=${sessionScope.appraise_allListMaxPage}">末 页</a>
			</c:when>
			<c:when test="${requestScope.nowPage<requestScope.maxPage && requestScope.maxPage!=1}">
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=${requestScope.nowPage-1}">上一页</a>
				<a href="<%=request.getContextPath() %>/servlet/ChangePage?page=${requestScope.nowPage+1}">下一页</a>	
			</c:when>
			</c:choose>		 
			<form action="<%=request.getContextPath() %>/servlet/ChangePage?page=<%=request.getParameter("pageId") %>" method="get">
			<input type="text" name="page"><input type="submit" value="跳转">
			</form>
  </body>
</html>
